﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using nPress.Core.Interfaces;

namespace nPress.Core.Entities
{
    public class Link : IIdentifiable
    {
        public Link()
        {
            Id = 0;
            Url = string.Empty;
            Name = string.Empty;
            Image = string.Empty;
            Target = string.Empty;
            Description = string.Empty; 
            Visible = string.Empty;
            Rating = 0;
            Updated = DateTime.Now;
            Rel = string.Empty;
            Rss = string.Empty;
        }
        public virtual int Id { get; private set;}// bigint(20) unsigned NOT NULL auto_increment,
        public virtual string Url { get; set; }// varchar(255) NOT NULL default '',
        public virtual string Name { get; set; } // varchar(255) NOT NULL default '',
        public virtual string Image { get; set; } // varchar(255) NOT NULL default '',
        public virtual string Target { get; set; } // varchar(25) NOT NULL default '',
        public virtual string Description { get; set; } // varchar(255) NOT NULL default '',
        public virtual string Visible { get; set; } // varchar(20) NOT NULL default 'Y',
        public virtual User Owner { get; set; } // bigint(20) unsigned NOT NULL default '1',
        public virtual int Rating { get; set; } // int(11) NOT NULL default '0',
        public virtual DateTime Updated { get; set; } // datetime NOT NULL default '0000-00-00 00:00:00',
        public virtual string Rel { get; set; } // varchar(255) NOT NULL default '',
        public virtual string Notes { get; set; } // mediumtext NOT NULL,
        public virtual string Rss { get; set; } // varchar(255) NOT NULL default '',
  
    }
}
